Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(ui): Remove a useless clone #3525

Merged
merged 1 commit into from
Jun 10, 2024

Conversation

Hywan
Copy link
Member

@Hywan Hywan commented Jun 10, 2024

This patch removes a useless clone of TimelineInner::items. This clone was technically cheap because it's a Vector behind the scene, which is cheap to clone, but still, it's not necessary at all to clone it.


This patch removes a useless clone of `TimelineInner::items`. This clone
was technically cheap because it's a `Vector` behind the scene, which is
cheap to clone, but still, it's not necessary at all to clone it.
@Hywan Hywan requested a review from a team as a code owner June 10, 2024 08:05
@Hywan Hywan requested review from bnjbvr and removed request for a team June 10, 2024 08:05
Copy link
Member

@bnjbvr bnjbvr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wasn't there a useless-clone lint in clippy…

@Hywan Hywan mentioned this pull request Jun 10, 2024
37 tasks
@Hywan Hywan enabled auto-merge June 10, 2024 08:14
Copy link

codecov bot commented Jun 10, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 83.78%. Comparing base (e5487da) to head (d403c12).

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #3525      +/-   ##
==========================================
- Coverage   83.79%   83.78%   -0.01%     
==========================================
  Files         254      254              
  Lines       25736    25735       -1     
==========================================
- Hits        21565    21562       -3     
- Misses       4171     4173       +2     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@Hywan Hywan merged commit 1a343d9 into matrix-org:main Jun 10, 2024
38 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants